<?if($this->GLP_count > 0):?>
	<table summary="last posts" class="last_posts">
		<tr>
			<th colspan="5" style="background-color:#eee; color:#666; font-weight:bold;">
				<img src="<?=$this->baseUrl()?>/static/gfx/icons/error.png" alt="<?=$this->translate->_('lastpost_header')?>" style="position:relative;top:3px;" /> <?=$this->translate->_('lastpost_header')?>
			</th>
		</tr>
		<tr>
			<th><?=$this->translate->_('lastpost_thread')?></th>
			<th><?=$this->translate->_('lastpost_board')?></th>
			<th class="center"><?=$this->translate->_('lastpost_posts')?></th>
			<th><?=$this->translate->_('lastpost_by')?></th>
			<th><?=$this->translate->_('lastpost_date')?></th>
		</tr>
	<?foreach($this->GLP_result AS $result):?>
		<tr class="col_last_post">
			<td>
				<a href="<?=$this->url(array('controller' => 'posts', 'action' => 'getLastPost', 'uid' => $result['thread_uid']), 'last_post', true);?>">
					<?=$this->escape($result['thread_title'])?>
				</a>
			</td>
			<td>
				<a href="<?=$this->url(array('controller' => 'threads', 'uid' => $result['board_uid'], 'title' => $this->escape($this->CleanUrlTitle($result['board_title']))), 'boards', true);?>">
					<?=$result['board_title']?>
				</a>
			</td>
			<td class="center"><strong><?=$result['new_posts']?></strong></td>
			<td>
				<a href="<?=$this->url(array('controller' => 'profile', 'uid' => $result['last_reply_user_uid']), 'profile', true)?>">
					<?=$this->escape($result['username'])?>
				</a>
			</td>
			<td><?=$this->datetime($result['last_reply_date'], 'dd. MMM yy')?></td>
		</tr>
	<?endforeach;?>
	</table>
	<hr />
<?endif;?>